#include "MessageSerializerInterface.h"
#include "MessageSerializer.h"

//**********************************************************
//function:
void CMessageSerializerInterface::saveMessages(const char* vFilePath, const std::vector<SMessage>& vMessages)
{
	CMessageSerializer* pSerializer = new CMessageSerializer(vFilePath);
	pSerializer->save(vMessages);
	delete pSerializer;
}

//**********************************************************
//function:
void CMessageSerializerInterface::loadMessages(const char* vFilePath, std::vector<SMessage>& vioMessages)
{
	CMessageSerializer* pSerializer = new CMessageSerializer(vFilePath);
	pSerializer->load(vioMessages);
	delete pSerializer;
}